package charazay.tool.cobjects;

import java.util.Vector;

/**
 * Class Player
 */
public class Player extends CharazayObject {

	//
	// Fields
	//

	public String firstName;
	public String lastName;
	public Team team;
	
	public int age;
	public int salary;
	public int si;
	public int height;
	public float weight;
	public int defence;
	public int freeThrow;
	public int twoPts;
	public int threePts;
	public int dribbling;
	public int passing;
	public int footwork;
	public int rebond;
	public int experience;
	public long date;
	public int speed;
	public int countryid;
	//
	// Constructors
	//
	public Player () { };
	
	//
	// Methods
	//


	//
	// Accessor methods
	//

	/**
	 * Set the value of firstName
	 * @param newVar the new value of firstName
	 */
	public void setFirstName ( String newVar ) {
		firstName = newVar;
	}

	/**
	 * Get the value of firstName
	 * @return the value of firstName
	 */
	public String getFirstName ( ) {
		return firstName;
	}

	/**
	 * Set the value of lastName
	 * @param newVar the new value of lastName
	 */
	public void setLastName ( String newVar ) {
		lastName = newVar;
	}

	/**
	 * Get the value of lastName
	 * @return the value of lastName
	 */
	public String getLastName ( ) {
		return lastName;
	}

	/**
	 * Set the value of team
	 * @param newVar the new value of team
	 */
	public void setTeam ( Team newVar ) {
		team = newVar;
	}

	/**
	 * Get the value of team
	 * @return the value of team
	 */
	public Team getTeam ( ) {
		return team;
	}

	/**
	 * Set the value of age
	 * @param newVar the new value of age
	 */
	public void setAge ( int newVar ) {
		age = newVar;
	}

	/**
	 * Get the value of age
	 * @return the value of age
	 */
	public int getAge ( ) {
		return age;
	}

	/**
	 * Set the value of salary
	 * @param newVar the new value of salary
	 */
	public void setSalary ( int newVar ) {
		salary = newVar;
	}

	/**
	 * Get the value of salary
	 * @return the value of salary
	 */
	public int getSalary ( ) {
		return salary;
	}

	/**
	 * Set the value of si
	 * @param newVar the new value of si
	 */
	public void setSi ( int newVar ) {
		si = newVar;
	}

	/**
	 * Get the value of si
	 * @return the value of si
	 */
	public int getSi ( ) {
		return si;
	}

	/**
	 * Set the value of height
	 * @param newVar the new value of height
	 */
	public void setHeight ( int newVar ) {
		height = newVar;
	}

	/**
	 * Get the value of height
	 * @return the value of height
	 */
	public int getHeight ( ) {
		return height;
	}

	/**
	 * Set the value of weight
	 * @param newVar the new value of weight
	 */
	public void setWeight ( float newVar ) {
		weight = newVar;
	}

	/**
	 * Get the value of weight
	 * @return the value of weight
	 */
	public float getWeight ( ) {
		return weight;
	}

	/**
	 * Set the value of defence
	 * @param newVar the new value of defence
	 */
	public void setDefence ( int newVar ) {
		defence = newVar;
	}

	/**
	 * Get the value of defence
	 * @return the value of defence
	 */
	public int getDefence ( ) {
		return defence;
	}

	/**
	 * Set the value of freeThrow
	 * @param newVar the new value of freeThrow
	 */
	public void setFreeThrow ( int newVar ) {
		freeThrow = newVar;
	}

	/**
	 * Get the value of freeThrow
	 * @return the value of freeThrow
	 */
	public int getFreeThrow ( ) {
		return freeThrow;
	}

	/**
	 * Set the value of twoPts
	 * @param newVar the new value of twoPts
	 */
	public void setTwoPts ( int newVar ) {
		twoPts = newVar;
	}

	/**
	 * Get the value of twoPts
	 * @return the value of twoPts
	 */
	public int getTwoPts ( ) {
		return twoPts;
	}

	/**
	 * Set the value of threePts
	 * @param newVar the new value of threePts
	 */
	public void setThreePts ( int newVar ) {
		threePts = newVar;
	}

	/**
	 * Get the value of threePts
	 * @return the value of threePts
	 */
	public int getThreePts ( ) {
		return threePts;
	}

	/**
	 * Set the value of dribbling
	 * @param newVar the new value of dribbling
	 */
	public void setDribbling ( int newVar ) {
		dribbling = newVar;
	}

	/**
	 * Get the value of dribbling
	 * @return the value of dribbling
	 */
	public int getDribbling ( ) {
		return dribbling;
	}

	/**
	 * Set the value of passing
	 * @param newVar the new value of passing
	 */
	public void setPassing ( int newVar ) {
		passing = newVar;
	}

	/**
	 * Get the value of passing
	 * @return the value of passing
	 */
	public int getPassing ( ) {
		return passing;
	}

	/**
	 * Set the value of footwork
	 * @param newVar the new value of footwork
	 */
	public void setFootwork ( int newVar ) {
		footwork = newVar;
	}

	/**
	 * Get the value of footwork
	 * @return the value of footwork
	 */
	public int getFootwork ( ) {
		return footwork;
	}

	/**
	 * Set the value of rebond
	 * @param newVar the new value of rebond
	 */
	public void setRebond ( int newVar ) {
		rebond = newVar;
	}

	/**
	 * Get the value of rebond
	 * @return the value of rebond
	 */
	public int getRebond ( ) {
		return rebond;
	}

	/**
	 * Set the value of experience
	 * @param newVar the new value of experience
	 */
	public void setExperience ( int newVar ) {
		experience = newVar;
	}

	/**
	 * Get the value of experience
	 * @return the value of experience
	 */
	public int getExperience ( ) {
		return experience;
	}

	/**
	 * Set the value of date
	 * @param newVar the new value of date
	 */
	public void setDate ( long newVar ) {
		date = newVar;
	}

	/**
	 * Get the value of date
	 * @return the value of date
	 */
	public long getDate ( ) {
		return date;
	}

	/**
	 * Set the value of speed
	 * @param newVar the new value of speed
	 */
	public void setSpeed ( int newVar ) {
		speed = newVar;
	}

	/**
	 * Get the value of speed
	 * @return the value of speed
	 */
	public int getSpeed ( ) {
		return speed;
	}

	public Vector<Object> asVector() {
		Vector<Object> data = new Vector<Object>();
		data.add(getFirstName()); //0
		data.add(getLastName()); //1
		
		data.add(Integer.valueOf(age)); //2
		data.add(Integer.valueOf(si)); //3
		data.add(Integer.valueOf(salary)); //4
		data.add(Integer.valueOf(height)); //5
		data.add(Float.valueOf(weight)); //6
		
		data.add(Integer.valueOf(defence)); //7
		data.add(Integer.valueOf(freeThrow)); //8
		data.add(Integer.valueOf(twoPts)); //9
		data.add(Integer.valueOf(threePts)); //10
		data.add(Integer.valueOf(dribbling)); //11
		data.add(Integer.valueOf(passing)); //12
		data.add(Integer.valueOf(speed)); //13
		data.add(Integer.valueOf(footwork)); //14
		data.add(Integer.valueOf(rebond)); //15
		data.add(Integer.valueOf(experience)); //16
		data.add(Integer.valueOf(charazay_id)); //17
		return data;
	}

	public void setCountry(int value) {
		// TODO Auto-generated method stub
		countryid = value;
	}
	
	public int getCountry() {
		return countryid;
	}
	
	//
	// Other methods
	//

}
